package com.vcs.dao;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Session;
import org.hibernate.Transaction;

import com.googlecode.s2hibernate.struts2.plugin.annotations.SessionTarget;
import com.googlecode.s2hibernate.struts2.plugin.annotations.TransactionTarget;

public class MetadataDAOImpl implements MetadataDAO {

	Log log = LogFactory.getLog(MetadataDAOImpl.class);

	@SessionTarget
	Session session;

	@TransactionTarget
	Transaction transaction;

	@Override
	public List<String> getPublicProfileKeywords() {
		// Criteria crit = session.createCriteria(Metadata.class);
		List<String> keywords = session.createQuery(
				"publicProfileKeyword from Metadata").list();
		log.info("keywords : " + keywords);
		return null;
	}
}
